//
//  YWReply.h
//  maintain
//
//  Created by Kyo on 16/6/29.
//  Copyright © 2016年 ewin. All rights reserved.
//

#import <Foundation/Foundation.h>
@class YWHandler;

typedef NS_ENUM(NSUInteger, YWReplyRelationType) {
    YWReplyRelationTypeAll = 0, //无
    YWReplyRelationTypeNotice = 1, // 通知
    YWReplyRelationTypeTempMission = 2, //临时任务
    YWReplyRelationTypeMaterialApply = 3,//物料管理申请
    YWReplyRelationTypeMaterialReceive = 4,//物料管理领用
    YWReplyRelationTypeMaterialReturn = 5,//物料管理归还
    
    YWReplyRelationTypeAssetCheckRecord = 6,//资产清点
    YWReplyRelationTypeTrouble = 7,//维修任务或报障
    YWReplyRelationTypeDetectAndUpkeep = 8,//检测保养
    YWReplyRelationTypeInspection = 9,//巡查
    YWReplyRelationTypeKeepWatch = 10,//巡更
    YWReplyRelationTypeAttendance = 13,//考勤
};

@interface YWReply : NSObject
/**结果ID*/
@property (nonatomic, assign) NSInteger replyId;
/**关联id*/
@property (nonatomic, assign) NSInteger relationId;
/**关联类型*/
@property (nonatomic, assign) YWReplyRelationType relationType;
/**回复的类型（即是上面的关联类型）*/
@property (nonatomic, assign) NSInteger type;
/**备注*/
@property (nonatomic, copy) NSString *content;
/**@的人*/
@property (nonatomic, strong) YWHandler *atUser;
/**回复时间*/
@property (nonatomic, assign) NSTimeInterval replyTime;
/**完成人*/
@property (nonatomic, strong) YWHandler *replier;
/**数据状态*/
@property (nonatomic, assign) NSInteger status;

/**是否已读*/
@property (nonatomic, assign) BOOL isRead;
@end

@interface YWReplySuccessJson : NSObject
/**结果ID*/
@property (nonatomic, assign) NSInteger replyId;
@end
